<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

	<!-- DATA TABLES -->
	<link rel="stylesheet" type="text/css" href="js/datatables/media/css/jquery.dataTables.min.css" />
	<link rel="stylesheet" type="text/css" href="js/datatables/media/assets/css/datatables.min.css" />
	<link rel="stylesheet" type="text/css" href="js/datatables/extras/TableTools/media/css/TableTools.min.css" />
    <link rel="stylesheet" type="text/css" href="css/page.css"/>
    <script src="js/jquery/jquery-2.0.3.min.js"></script>
				<!-- /SIDEBAR -->
		<div id="main-content">	
			<div class="container">
				  <div class="row">
					<div id="content" class="col-lg-12">
						<!-- PAGE HEADER-->
						<div class="row">
							<div class="col-sm-12">
								<div class="page-header">
									<!-- STYLER -->
									
									<!-- /STYLER -->
									<!-- BREADCRUMBS -->
									<ul class="breadcrumb">
										<li>
											<i class="fa fa-home"></i>
											<a href="index.jsp">主页</a>
										</li>
										<li>
											<a href="javascript:;">印刷服务单位选定记录</a>
										</li>
									</ul>
									
								 </div>
							  </div>
						</div>
						<!-- /PAGE HEADER -->
						<!-- DATA TABLES -->
						   <div class="col-md-13">
								<div class="panel panel-default">
									<div class="panel-body">
									    <form:form action="./getAllPrint" method="get" modelAttribute="search">
											<form:input path="print_name" class="do-this" />
											<button type="submit" class="btn btn-primary" >搜索|查询</button>
										</form:form>
									   
										<table class="table table-striped table-bordered table-hover">
											<thead>
												<tr>
													<th style="width:55px;text-align: center;"><b>编号</b></th>
													<th style="text-align: center;"><b>印刷项目名称</b></th>
													<th style="width:240px;text-align: center;"><b>电脑随机选取的印务单位</b></th>
													<th style="width:180px;text-align: center;"><b>选取时间</b></th>
													<th style="width:218px;text-align: center;"><b>操作</b></th>
												</tr>
											</thead>
											<tbody>
												<c:forEach items="${page.lists}" var="opp">
												<tr style="text-align: center;">
													<td>${opp.id}</td>
													<td>${opp.print_name}</td>
													<td>${opp.print_random}</td>
													<td>${opp.print_time}</td>
													<td>
													    <a href="./getPrintById?id=${opp.id}"><button type="button" class="btn btn-danger">详情</button></a>
													    <a href="./getPrintByIds?id=${opp.id}"><button type="button" class="btn btn-info">预览打印</button></a>
														<a href="./deletePrint?id=${opp.id}"><button type="button" class="btn btn-warning">删除</button></a>
													</td>
												</tr>
												</c:forEach>
												<!--分页  -->
												<tr>
										            <td style="text-align: center;" colspan="5">
										               <span class="disabled">
										                  <div class="meneame">${page.html}</div>
										               </span>
										            </td>
									            </tr>
											</tbody>
										</table>
									</div>
								</div>
							</div>
						
						
			
						
						</div>

					</div>
				</div>
			</div>

</section>
		
	<!-- DATA TABLES -->
	<script type="text/javascript" src="js/datatables/media/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="js/datatables/media/assets/js/datatables.min.js"></script>
	<script type="text/javascript" src="js/datatables/extras/TableTools/media/js/TableTools.min.js"></script>
	<script type="text/javascript" src="js/datatables/extras/TableTools/media/js/ZeroClipboard.min.js"></script>
	 
	<script>
		jQuery(document).ready(function() {		
			App.setPage("printShow");  //Set current page
			App.init(); //Initialise plugins and elements
		});
	</script>
	<!-- /JAVASCRIPTS -->
